﻿{foreach item=i from=$threads}
{if $i.id!=5 && ($i.id <19 or $i.id>25)}
<div class="contentTitleDark">{$i.name} viimased teemad</div>
<div class="content">
	<table width="100%" border="0" cellspacing="1" cellpadding="1" style="background-color:#E6E6E6">
			<tr style="background-color:#FDECEA; height: 30px;">
				<td class="black s11 b"  width="20">&nbsp;</td>
				<td class="black s11 b"  width="250">Teema</td>
				<td class="black s11 b"  style="text-align:center" width="70">Alustas</td>
				<td class="black s11 b"  style="text-align:center" width="70">Postitusi</td>
				<td class="black s11 b"  style="text-align:center" width="70">Vaatamisi</td>
				<td class="black s11 b"  style="text-align:center" width="*">Viimane postitus</td>
				<td class="black s11 b"  style="text-align:center" width="*">Viimane postitaja</td>
			</tr>
			<tbody>
			{foreach item=t from=$i.topics}
			<tr style="background-color: {cycle values='#FFFFFF,#F3F3F3'}" >
				<td ><img src="{$mediaUrl}Foorum/topic.gif"></td>
				<td><a href="{$pageUrl}Forum/topic/{$t.id}&lk={$t.lk}" class="red s11 b">{$t.title|truncate:53}</a></td>
				<td class="lightGrey s10" style="text-align:center">{$t.starterUsername}</td>
				<td style="text-align:center">{$t.nrOfPosts}</td>
				<td style="text-align:center">{$t.views}</td>
				<td style="text-align:center" class="lightGrey s10">{$t.lastPostTime}</td>
				<td style="text-align:center" class="lightGrey s10"><span class="red s10 b">{$t.lastPostUserNickname}</span></td>
			</tr>
			{/foreach}
			</tbody>
	</table>
</div>
{/if}
{/foreach}

